package com.zelix;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.PrintWriter;

public class ft extends is
        implements pm {

    int i;
    private static String z[];

    ft(int j, jb jb, jm jm1)
            throws IOException {
        super(j, jm1);
        i = jb.readUnsignedShort();
    }

    public int l() {
        return 8;
    }

    public is a(qy qy1, qy qy2, PrintWriter printwriter) {
        try {
            is is1 = super.f.a(i);
            if (is1 instanceof zs) {
                ys ys1 = new ys(this, (zs) is1);
                qy1.b(is1, ys1);
                return ys1;
            } else {
                printwriter.println(super.f.b() + z[0] + z[2]);
                return new ps(this, 8, z[2]);
            }
        }
        catch (ArrayIndexOutOfBoundsException _ex) {
            printwriter.println(super.f.b() + z[0] + z[1]);
        }
        return new ps(this, 8, z[1]);
    }

    protected void a(DataOutputStream dataoutputstream)
            throws IOException {
        dataoutputstream.writeByte(8);
        dataoutputstream.writeShort(i);
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key = 0x58;
                    break;
                case 1:
                    key = 41;
                    break;
                case 2:
                    key = 33;
                    break;
                case 3:
                    key = 10;
                    break;
                case 4:
                    key = 122;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[];
        as = new String[3];
        as[0] = z("x\023\001".toCharArray());
        as[1] = z("\033FOy\0169GU**7FM*\0236MDrZ7\\U*\025>\tSk\024?L".toCharArray());
        as[2] = z("\021GWk\0261M\001I\0256ZUk\024,\tqe\0254\tR~\b1GF*\0236MDr".toCharArray());
        z = as;

    }
}